import { FC, useEffect } from 'react';
// import request from 'umi-request';

// import http from '@/utils/http';
import { dataApi } from '@/utils/api';

const Index: FC = () => {
  useEffect(() => {
    (async () => {
      const res = await dataApi();
      console.log(res);
    })();
  }, []);

  return (
    <>
      <h2>request</h2>
    </>
  );
};

export default Index;
